#ifndef SONGITEM_H
#define SONGITEM_H

#include<QListWidget>
#include<QListWidgetItem>
#include<QPointer>

class Song;

class SongItem: public QListWidgetItem{
public:
	SongItem(QPointer<Song> song, QListWidget* parent);
	~SongItem();

	void highlight(bool shouldHighlight, bool stop = false);
	void setData(short int rank);
	
	const QPointer<Song> song()const{ return m_song; }
	
	void reloadMetaData();

	void songDeleted();
private:
	QPointer<Song> m_song;
	short int m_rank;
};

#endif
